.class public Lcom/example/m6wmr/YucartActivity;
.super Landroid/app/Activity;
.source "YucartActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/YucartActivity$addgdClickListener;,
        Lcom/example/m6wmr/YucartActivity$delgdClickListener;
    }
.end annotation


# static fields
.field public static NorcartAC:Lcom/example/m6wmr/YucartActivity;


# instance fields
.field cartallcost:Landroid/widget/TextView;

.field cartallshu:Landroid/widget/TextView;

.field cartbottom:Landroid/widget/LinearLayout;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private goint:I

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field private mPopupWindowHeight:I

.field private mPopupWindowWidth:I

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mcontext:Landroid/content/Context;

.field mycartstep1:Landroid/view/View;

.field mycartstep2:Landroid/view/View;

.field private payline:Ljava/lang/String;

.field pd:Landroid/app/ProgressDialog;

.field private people:Ljava/lang/String;

.field private pingstr:Ljava/lang/String;

.field private pstime:Ljava/lang/String;

.field private pstimename:Ljava/lang/String;

.field publayout:Landroid/widget/LinearLayout;

.field private shopid:Ljava/lang/String;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;

.field private tempgoodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field waitLoginView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 51
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 52
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    .line 55
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    .line 56
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    .line 57
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->mHandler:Landroid/os/Handler;

    .line 58
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->pd:Landroid/app/ProgressDialog;

    .line 59
    iput-boolean v2, p0, Lcom/example/m6wmr/YucartActivity;->loaddata:Z

    .line 60
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    .line 61
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->goodsstr:Ljava/lang/String;

    .line 64
    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    .line 67
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->shopname:Ljava/lang/String;

    .line 68
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->shopstr:Ljava/lang/String;

    .line 69
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->pingstr:Ljava/lang/String;

    .line 70
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->payline:Ljava/lang/String;

    .line 71
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->pstime:Ljava/lang/String;

    .line 72
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->people:Ljava/lang/String;

    .line 73
    iput v2, p0, Lcom/example/m6wmr/YucartActivity;->goint:I

    .line 74
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->pstimename:Ljava/lang/String;

    .line 51
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/YucartActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->goodsls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/YucartActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 71
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->pstime:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$12(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 74
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->pstimename:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$13(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->pstimename:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$14(Lcom/example/m6wmr/YucartActivity;Z)V
    .locals 0

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/example/m6wmr/YucartActivity;->loaddata:Z

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 70
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->payline:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$16(Lcom/example/m6wmr/YucartActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->tempgoodsls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$17(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->payline:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$18(Lcom/example/m6wmr/YucartActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$19(Lcom/example/m6wmr/YucartActivity;)V
    .locals 0

    .prologue
    .line 501
    invoke-direct {p0}, Lcom/example/m6wmr/YucartActivity;->inittimeWindow()V

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/YucartActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$20(Lcom/example/m6wmr/YucartActivity;)V
    .locals 0

    .prologue
    .line 559
    invoke-direct {p0}, Lcom/example/m6wmr/YucartActivity;->inityhjWindow()V

    return-void
.end method

.method static synthetic access$21(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 72
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->people:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$22(Lcom/example/m6wmr/YucartActivity;I)V
    .locals 0

    .prologue
    .line 73
    iput p1, p0, Lcom/example/m6wmr/YucartActivity;->goint:I

    return-void
.end method

.method static synthetic access$23(Lcom/example/m6wmr/YucartActivity;)Z
    .locals 1

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/example/m6wmr/YucartActivity;->loaddata:Z

    return v0
.end method

.method static synthetic access$24(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 61
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->goodsstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$25(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 68
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->shopstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$26(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 72
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->people:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/YucartActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 64
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/YucartActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/YucartActivity;)Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cv:Landroid/content/ContentValues;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/YucartActivity;)I
    .locals 1

    .prologue
    .line 73
    iget v0, p0, Lcom/example/m6wmr/YucartActivity;->goint:I

    return v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->pstime:Ljava/lang/String;

    return-object v0
.end method

.method private inittimeWindow()V
    .locals 14

    .prologue
    const/4 v11, 0x0

    const/4 v13, -0x2

    .line 502
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v4

    .line 503
    .local v4, "layoutInflater":Landroid/view/LayoutInflater;
    const v10, 0x7f0300b6

    invoke-virtual {v4, v10, v11}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v6

    .line 504
    .local v6, "popupWindow":Landroid/view/View;
    const v10, 0x7f0c0366

    invoke-virtual {v6, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    .line 506
    .local v7, "selectview":Landroid/widget/LinearLayout;
    const-string v10, "YucartACtivity"

    const-string v11, "\u52a0\u8f7d\u65f6\u95f4\u5f39\u51fa\u5c42\u754c\u9762"

    invoke-static {v10, v11}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 510
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    iget-object v10, p0, Lcom/example/m6wmr/YucartActivity;->shopstr:Ljava/lang/String;

    invoke-direct {v3, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 511
    .local v3, "json":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 512
    .local v2, "jarray":Lorg/json/JSONObject;
    const-string v10, "timelist"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    .line 513
    .local v5, "myarray":Lorg/json/JSONArray;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v10

    if-lt v1, v10, :cond_0

    .line 553
    .end local v1    # "i":I
    .end local v2    # "jarray":Lorg/json/JSONObject;
    .end local v3    # "json":Lorg/json/JSONObject;
    .end local v5    # "myarray":Lorg/json/JSONArray;
    :goto_1
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v10

    invoke-interface {v10}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v10

    invoke-virtual {v10}, Landroid/view/Display;->getWidth()I

    move-result v10

    iput v10, p0, Lcom/example/m6wmr/YucartActivity;->mScreenWidth:I

    .line 554
    new-instance v10, Landroid/widget/PopupWindow;

    invoke-direct {v10, v6, v13, v13}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v10, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 555
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v10

    invoke-interface {v10}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v10

    invoke-virtual {v10}, Landroid/view/Display;->getHeight()I

    move-result v10

    iput v10, p0, Lcom/example/m6wmr/YucartActivity;->mScreenWidth:I

    .line 556
    iget-object v10, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v10}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v10

    iput v10, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindowWidth:I

    .line 557
    iget-object v10, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v10}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v10

    iput v10, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindowHeight:I

    .line 558
    return-void

    .line 517
    .restart local v1    # "i":I
    .restart local v2    # "jarray":Lorg/json/JSONObject;
    .restart local v3    # "json":Lorg/json/JSONObject;
    .restart local v5    # "myarray":Lorg/json/JSONArray;
    :cond_0
    :try_start_1
    iget-object v10, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v11, 0x7f0300b4

    const/4 v12, 0x0

    invoke-static {v10, v11, v12}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v8

    .line 518
    .local v8, "tempview":Landroid/view/View;
    invoke-virtual {v8, v1}, Landroid/view/View;->setId(I)V

    .line 519
    const v10, 0x7f0c0013

    invoke-virtual {v8, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 520
    .local v9, "textView1":Landroid/widget/TextView;
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-virtual {v5, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "s"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "-"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v5, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "e"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 521
    invoke-virtual {v7, v8, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 522
    new-instance v10, Lcom/example/m6wmr/YucartActivity$9;

    invoke-direct {v10, p0}, Lcom/example/m6wmr/YucartActivity$9;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v8, v10}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 513
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 549
    .end local v1    # "i":I
    .end local v2    # "jarray":Lorg/json/JSONObject;
    .end local v3    # "json":Lorg/json/JSONObject;
    .end local v5    # "myarray":Lorg/json/JSONArray;
    .end local v8    # "tempview":Landroid/view/View;
    .end local v9    # "textView1":Landroid/widget/TextView;
    :catch_0
    move-exception v0

    .line 551
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_1
.end method

.method private inityhjWindow()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    const/4 v8, -0x2

    .line 560
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 561
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v1, v6, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 562
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0c0366

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 563
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "YucartACtivity"

    const-string v7, "\u52a0\u8f7d\u4f18\u60e0\u5238\u5f39\u51fa\u5c42\u754c\u9762"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 566
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    const/16 v6, 0xf

    if-lt v0, v6, :cond_0

    .line 591
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/YucartActivity;->mScreenWidth:I

    .line 592
    new-instance v6, Landroid/widget/PopupWindow;

    invoke-direct {v6, v2, v8, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 593
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/YucartActivity;->mScreenWidth:I

    .line 594
    iget-object v6, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindowWidth:I

    .line 595
    iget-object v6, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/YucartActivity;->mPopupWindowHeight:I

    .line 596
    return-void

    .line 568
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f0300b4

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 570
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 571
    const v6, 0x7f0c0013

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 572
    .local v5, "textView1":Landroid/widget/TextView;
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "\u4eba"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 573
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 575
    new-instance v6, Lcom/example/m6wmr/YucartActivity$10;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/YucartActivity$10;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 566
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public bindbtn()V
    .locals 3

    .prologue
    .line 789
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 790
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/YucartActivity$11;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/YucartActivity$11;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 803
    const v2, 0x7f0c0052

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 804
    .local v1, "dosubmit":Landroid/widget/TextView;
    new-instance v2, Lcom/example/m6wmr/YucartActivity$12;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/YucartActivity$12;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 838
    return-void
.end method

.method public freshcart()V
    .locals 18

    .prologue
    .line 604
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    const v15, 0x7f0c0240

    invoke-virtual {v14, v15}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 605
    .local v4, "catdet":Landroid/widget/LinearLayout;
    invoke-virtual {v4}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 606
    const/4 v3, 0x0

    .line 607
    .local v3, "allshu":I
    const/4 v2, 0x0

    .line 609
    .local v2, "allcost":F
    :try_start_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v14}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v14

    .line 610
    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "select * from cart where shopid="

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    .line 609
    invoke-virtual/range {v14 .. v16}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v14

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    .line 611
    const/4 v5, 0x0

    .line 612
    .local v5, "checki":I
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    if-eqz v14, :cond_2

    .line 613
    :goto_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v14}, Landroid/database/Cursor;->moveToNext()Z

    move-result v14

    if-nez v14, :cond_1

    .line 642
    if-nez v5, :cond_0

    .line 644
    const-string v14, "\u8d2d\u7269\u8f66\u6570\u636e\u4e3a\u7a7a"

    const/4 v15, 0x0

    .line 643
    move-object/from16 v0, p0

    invoke-static {v0, v14, v15}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v14

    .line 645
    invoke-virtual {v14}, Landroid/widget/Toast;->show()V

    .line 646
    new-instance v11, Landroid/content/Intent;

    invoke-direct {v11}, Landroid/content/Intent;-><init>()V

    .line 647
    .local v11, "intent":Landroid/content/Intent;
    const-string v14, "shopid"

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v14, v15}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 648
    const-string v14, "shopname"

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v11, v14, v15}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 649
    const-class v14, Lcom/example/m6wmr/ShopDishesActivity;

    move-object/from16 v0, p0

    invoke-virtual {v11, v0, v14}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 650
    move-object/from16 v0, p0

    invoke-virtual {v0, v11}, Lcom/example/m6wmr/YucartActivity;->startActivity(Landroid/content/Intent;)V

    .line 651
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6wmr/YucartActivity;->finish()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 667
    .end local v5    # "checki":I
    .end local v11    # "intent":Landroid/content/Intent;
    :cond_0
    :goto_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cartallshu:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, "\u4efd"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 668
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cartallcost:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "\uffe5"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 670
    return-void

    .line 615
    .restart local v5    # "checki":I
    :cond_1
    :try_start_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v15, 0x7f030058

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v13

    .line 616
    .local v13, "tempview":Landroid/view/View;
    const v14, 0x7f0c0235

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/TextView;

    .line 617
    .local v10, "goodsname":Landroid/widget/TextView;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    const-string v16, "goodsname"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v10, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 621
    const v14, 0x7f0c0081

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 622
    .local v9, "goodscoust":Landroid/widget/TextView;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    const-string v16, "goodscount"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v9, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 624
    const v14, 0x7f0c0236

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 626
    .local v8, "goodscost":Landroid/widget/TextView;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    const-string v16, "goodscount"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getFloat(I)F

    move-result v14

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v16, v0

    const-string v17, "goodscost"

    invoke-interface/range {v16 .. v17}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v16

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getFloat(I)F

    move-result v15

    mul-float v12, v14, v15

    .line 627
    .local v12, "result":F
    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "\uffe5"

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v12}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v8, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 629
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    const-string v16, "goodscount"

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v15

    invoke-interface {v14, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v14

    add-int/2addr v3, v14

    .line 630
    add-float/2addr v2, v12

    .line 633
    const v14, 0x7f0c0080

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 634
    .local v6, "delgdbtn":Landroid/widget/ImageView;
    new-instance v14, Lcom/example/m6wmr/YucartActivity$delgdClickListener;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v16, v0

    const-string v17, "goodsid"

    invoke-interface/range {v16 .. v17}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v16

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v15

    move-object/from16 v0, p0

    invoke-direct {v14, v0, v15}, Lcom/example/m6wmr/YucartActivity$delgdClickListener;-><init>(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V

    invoke-virtual {v6, v14}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 636
    const v14, 0x7f0c0082

    invoke-virtual {v13, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 637
    .local v1, "addgdbtn":Landroid/widget/ImageView;
    new-instance v14, Lcom/example/m6wmr/YucartActivity$addgdClickListener;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v16, v0

    const-string v17, "goodsid"

    invoke-interface/range {v16 .. v17}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v16

    invoke-interface/range {v15 .. v16}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v15

    move-object/from16 v0, p0

    invoke-direct {v14, v0, v15}, Lcom/example/m6wmr/YucartActivity$addgdClickListener;-><init>(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V

    invoke-virtual {v1, v14}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 639
    invoke-virtual {v4, v13}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 640
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_0

    .line 654
    .end local v1    # "addgdbtn":Landroid/widget/ImageView;
    .end local v6    # "delgdbtn":Landroid/widget/ImageView;
    .end local v8    # "goodscost":Landroid/widget/TextView;
    .end local v9    # "goodscoust":Landroid/widget/TextView;
    .end local v10    # "goodsname":Landroid/widget/TextView;
    .end local v12    # "result":F
    .end local v13    # "tempview":Landroid/view/View;
    :cond_2
    new-instance v11, Landroid/content/Intent;

    invoke-direct {v11}, Landroid/content/Intent;-><init>()V

    .line 655
    .restart local v11    # "intent":Landroid/content/Intent;
    const-string v14, "shopid"

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v14, v15}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 656
    const-string v14, "shopname"

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6wmr/YucartActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v11, v14, v15}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 657
    const-class v14, Lcom/example/m6wmr/ShopDishesActivity;

    move-object/from16 v0, p0

    invoke-virtual {v11, v0, v14}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 658
    move-object/from16 v0, p0

    invoke-virtual {v0, v11}, Lcom/example/m6wmr/YucartActivity;->startActivity(Landroid/content/Intent;)V

    .line 659
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6wmr/YucartActivity;->finish()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1

    .line 662
    .end local v5    # "checki":I
    .end local v11    # "intent":Landroid/content/Intent;
    :catch_0
    move-exception v7

    .line 663
    .local v7, "e":Ljava/lang/Exception;
    invoke-virtual {v7}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_1
.end method

.method public getDataCount(Ljava/lang/String;)J
    .locals 3
    .param p1, "tableName"    # Ljava/lang/String;

    .prologue
    .line 782
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 783
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select count(*) from "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 782
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    .line 784
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 785
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public getcartstep1()V
    .locals 25

    .prologue
    .line 320
    const-string v22, "userInfo"

    .line 321
    const/16 v23, 0x0

    .line 320
    move-object/from16 v0, p0

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/example/m6wmr/YucartActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v14

    .line 322
    .local v14, "preferences":Landroid/content/SharedPreferences;
    const-string v22, "uid"

    const-string v23, ""

    move-object/from16 v0, v22

    move-object/from16 v1, v23

    invoke-interface {v14, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 323
    .local v3, "account":Ljava/lang/String;
    const-string v22, "username"

    const-string v23, ""

    move-object/from16 v0, v22

    move-object/from16 v1, v23

    invoke-interface {v14, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 324
    .local v21, "username":Ljava/lang/String;
    const-string v22, "pass"

    const-string v23, ""

    move-object/from16 v0, v22

    move-object/from16 v1, v23

    invoke-interface {v14, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    .line 325
    .local v16, "pwd":Ljava/lang/String;
    new-instance v9, Landroid/os/Message;

    invoke-direct {v9}, Landroid/os/Message;-><init>()V

    .line 326
    .local v9, "msg":Landroid/os/Message;
    const-string v22, "0"

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/YucartActivity;->payline:Ljava/lang/String;

    .line 327
    if-eqz v3, :cond_0

    const-string v22, ""

    move-object/from16 v0, v22

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v22

    if-eqz v22, :cond_1

    .line 328
    :cond_0
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6wmr/YucartActivity;->waitlogin()V

    .line 452
    :goto_0
    return-void

    .line 330
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 331
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v22, v0

    const v23, 0x7f030059

    .line 332
    const/16 v24, 0x0

    .line 331
    invoke-static/range {v22 .. v24}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v22

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    .line 334
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v22

    .line 335
    const-string v23, "select * from address where is_default = 1"

    const/16 v24, 0x0

    .line 334
    invoke-virtual/range {v22 .. v24}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v22

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    .line 337
    const/4 v5, 0x0

    .line 338
    .local v5, "checknowis_cant":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v22, v0

    if-eqz v22, :cond_4

    .line 339
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v22, v0

    invoke-interface/range {v22 .. v22}, Landroid/database/Cursor;->moveToNext()Z

    move-result v22

    if-nez v22, :cond_3

    .line 358
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 359
    const v23, 0x7f0c0224

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    .line 358
    check-cast v6, Landroid/widget/EditText;

    .line 360
    .local v6, "checkphone":Landroid/widget/EditText;
    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v22

    invoke-interface/range {v22 .. v22}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v22

    .line 361
    const-string v23, "%"

    const-string v24, ""

    invoke-virtual/range {v22 .. v24}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v22

    const-string v23, " "

    const-string v24, ""

    invoke-virtual/range {v22 .. v24}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v20

    .line 362
    .local v20, "tphone":Ljava/lang/String;
    const-string v22, ""

    move-object/from16 v0, v20

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v22

    if-eqz v22, :cond_2

    .line 363
    const/4 v5, 0x1

    .line 368
    .end local v6    # "checkphone":Landroid/widget/EditText;
    .end local v20    # "tphone":Ljava/lang/String;
    :cond_2
    :goto_2
    if-eqz v5, :cond_5

    .line 369
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6wmr/YucartActivity;->waitaddress()V

    goto/16 :goto_0

    .line 344
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 345
    const v23, 0x7f0c0224

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v13

    .line 344
    check-cast v13, Landroid/widget/EditText;

    .line 346
    .local v13, "phone":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 347
    const v23, 0x7f0c0225

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    .line 346
    check-cast v4, Landroid/widget/EditText;

    .line 348
    .local v4, "address":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 349
    const v23, 0x7f0c0226

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    .line 348
    check-cast v7, Landroid/widget/EditText;

    .line 350
    .local v7, "contactname":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v23, v0

    .line 351
    const-string v24, "phone"

    invoke-interface/range {v23 .. v24}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v23

    .line 350
    invoke-interface/range {v22 .. v23}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v22

    move-object/from16 v0, v22

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 352
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v23, v0

    .line 353
    const-string v24, "address"

    invoke-interface/range {v23 .. v24}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v23

    .line 352
    invoke-interface/range {v22 .. v23}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v22

    move-object/from16 v0, v22

    invoke-virtual {v4, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 354
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    move-object/from16 v23, v0

    .line 355
    const-string v24, "contactname"

    invoke-interface/range {v23 .. v24}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v23

    .line 354
    invoke-interface/range {v22 .. v23}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v22

    move-object/from16 v0, v22

    invoke-virtual {v7, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    .line 366
    .end local v4    # "address":Landroid/widget/EditText;
    .end local v7    # "contactname":Landroid/widget/EditText;
    .end local v13    # "phone":Landroid/widget/EditText;
    :cond_4
    const/4 v5, 0x1

    goto/16 :goto_2

    .line 372
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 373
    const v23, 0x7f0c0238

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v18

    .line 372
    check-cast v18, Landroid/widget/LinearLayout;

    .line 374
    .local v18, "showaddress":Landroid/widget/LinearLayout;
    const/16 v22, 0x8

    move-object/from16 v0, v18

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 376
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 377
    const v23, 0x7f0c023e

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v19

    .line 376
    check-cast v19, Landroid/widget/LinearLayout;

    .line 380
    .local v19, "showaddress3":Landroid/widget/LinearLayout;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 381
    const v23, 0x7f0c0237

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    .line 380
    check-cast v8, Landroid/widget/LinearLayout;

    .line 382
    .local v8, "goaddress":Landroid/widget/LinearLayout;
    new-instance v22, Lcom/example/m6wmr/YucartActivity$4;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6wmr/YucartActivity$4;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    move-object/from16 v0, v22

    invoke-virtual {v8, v0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 396
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 397
    const v23, 0x7f0c023d

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v12

    .line 396
    check-cast v12, Landroid/widget/ImageView;

    .line 398
    .local v12, "payxianjinbtn":Landroid/widget/ImageView;
    new-instance v22, Lcom/example/m6wmr/YucartActivity$5;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6wmr/YucartActivity$5;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    move-object/from16 v0, v22

    invoke-virtual {v12, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 409
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 410
    const v23, 0x7f0c023f

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    .line 409
    check-cast v10, Landroid/widget/ImageView;

    .line 411
    .local v10, "paylinebtn":Landroid/widget/ImageView;
    new-instance v22, Lcom/example/m6wmr/YucartActivity$6;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6wmr/YucartActivity$6;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    move-object/from16 v0, v22

    invoke-virtual {v10, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 423
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 424
    const v23, 0x7f0c023a

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v17

    .line 423
    check-cast v17, Landroid/widget/TextView;

    .line 426
    .local v17, "selectpstime":Landroid/widget/TextView;
    new-instance v22, Lcom/example/m6wmr/YucartActivity$7;

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6wmr/YucartActivity$7;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    move-object/from16 v0, v17

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 439
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 440
    const v23, 0x7f0c0239

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v15

    .line 439
    check-cast v15, Landroid/widget/TextView;

    .line 441
    .local v15, "pstitle":Landroid/widget/TextView;
    const-string v22, "\u6d88\u8d39\u65f6\u95f4"

    move-object/from16 v0, v22

    invoke-virtual {v15, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 443
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->mycartstep1:Landroid/view/View;

    move-object/from16 v22, v0

    .line 444
    const v23, 0x7f0c023e

    invoke-virtual/range {v22 .. v23}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    .line 443
    check-cast v11, Landroid/widget/LinearLayout;

    .line 445
    .local v11, "payonlinelayout":Landroid/widget/LinearLayout;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lmyapp/MyApp;->getpayonline()Z

    move-result v22

    if-nez v22, :cond_6

    .line 446
    const/16 v22, 0x8

    move/from16 v0, v22

    invoke-virtual {v11, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 448
    :cond_6
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6wmr/YucartActivity;->getshopSource()Z

    goto/16 :goto_0
.end method

.method public getcartstep2()V
    .locals 5

    .prologue
    .line 454
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 455
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v3, 0x7f03005c

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/YucartActivity;->mycartstep2:Landroid/view/View;

    .line 456
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const-string v3, "\u83b7\u53d6\u4fc3\u9500\u6570\u636e"

    const-string v4, "\u6570\u636e\u83b7\u53d6\u4e2d.."

    invoke-static {v2, v3, v4}, Lmyapp/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 458
    const-string v2, "0"

    iput-object v2, p0, Lcom/example/m6wmr/YucartActivity;->people:Ljava/lang/String;

    .line 475
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->mycartstep2:Landroid/view/View;

    const v3, 0x7f0c0244

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 476
    .local v1, "selectyhj":Landroid/widget/TextView;
    new-instance v2, Lcom/example/m6wmr/YucartActivity$8;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/YucartActivity$8;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 492
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->mycartstep2:Landroid/view/View;

    const v3, 0x7f0c0243

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 493
    .local v0, "paytypename":Landroid/widget/TextView;
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->payline:Ljava/lang/String;

    const-string v3, "0"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 494
    const-string v2, "\u8d27\u5230\u652f\u4ed8"

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 498
    :goto_0
    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/example/m6wmr/YucartActivity;->mycartstep2:Landroid/view/View;

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 499
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getcxSource()Z

    .line 500
    return-void

    .line 496
    :cond_0
    const-string v2, "\u5728\u7ebf\u652f\u4ed8"

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public getcxSource()Z
    .locals 1

    .prologue
    .line 951
    new-instance v0, Lcom/example/m6wmr/YucartActivity$15;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/YucartActivity$15;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    .line 1028
    invoke-virtual {v0}, Lcom/example/m6wmr/YucartActivity$15;->start()V

    .line 1029
    const/4 v0, 0x0

    return v0
.end method

.method public getshopSource()Z
    .locals 1

    .prologue
    .line 876
    new-instance v0, Lcom/example/m6wmr/YucartActivity$14;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/YucartActivity$14;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    .line 945
    invoke-virtual {v0}, Lcom/example/m6wmr/YucartActivity$14;->start()V

    .line 946
    const/4 v0, 0x0

    return v0
.end method

.method public loaddatatojs()Z
    .locals 1

    .prologue
    .line 842
    new-instance v0, Lcom/example/m6wmr/YucartActivity$13;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/YucartActivity$13;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    .line 871
    invoke-virtual {v0}, Lcom/example/m6wmr/YucartActivity$13;->start()V

    .line 872
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 91
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 92
    const v3, 0x7f03000c

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->setContentView(I)V

    .line 94
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    .line 95
    iget-object v3, p0, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 96
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 97
    iput-object p0, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    .line 98
    sput-object p0, Lcom/example/m6wmr/YucartActivity;->NorcartAC:Lcom/example/m6wmr/YucartActivity;

    .line 100
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->goodsls:Ljava/util/List;

    .line 101
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->tempgoodsls:Ljava/util/List;

    .line 103
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 104
    .local v2, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;

    .line 105
    const-string v3, "shopname"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->shopname:Ljava/lang/String;

    .line 108
    new-instance v3, Ldbclass/DBOpenHelper;

    iget-object v4, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v3, v4}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    .line 109
    iget-object v3, p0, Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 110
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->cv:Landroid/content/ContentValues;

    .line 111
    const/4 v3, 0x0

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    .line 112
    new-instance v3, Lcom/example/m6wmr/YucartActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/YucartActivity$1;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    .line 270
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->bindbtn()V

    .line 271
    const v3, 0x7f0c004c

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    .line 272
    const v3, 0x7f0c004f

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->cartbottom:Landroid/widget/LinearLayout;

    .line 273
    const v3, 0x7f0c0050

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->cartallshu:Landroid/widget/TextView;

    .line 274
    const v3, 0x7f0c0051

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/example/m6wmr/YucartActivity;->cartallcost:Landroid/widget/TextView;

    .line 275
    const v3, 0x7f0c004d

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/YucartActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 276
    .local v1, "goumai":Landroid/widget/TextView;
    const-string v3, "\u70b9\u83dc\u9884\u8ba2"

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 282
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 1163
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 1164
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 1165
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 1167
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 1168
    iget-object v0, p0, Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 1170
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 1147
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 1148
    iget v0, p0, Lcom/example/m6wmr/YucartActivity;->goint:I

    .line 1149
    .local v0, "checkgo":I
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 1150
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getcartstep1()V

    .line 1151
    iput v2, p0, Lcom/example/m6wmr/YucartActivity;->goint:I

    .line 1158
    .end local v0    # "checkgo":I
    :cond_0
    :goto_0
    return v2

    .line 1154
    .restart local v0    # "checkgo":I
    :cond_1
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->finish()V

    goto :goto_0
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 1141
    invoke-virtual {p0}, Lcom/example/m6wmr/YucartActivity;->getcartstep1()V

    .line 1142
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 1143
    return-void
.end method

.method public submitSource()Z
    .locals 1

    .prologue
    .line 1035
    new-instance v0, Lcom/example/m6wmr/YucartActivity$16;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/YucartActivity$16;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    .line 1133
    invoke-virtual {v0}, Lcom/example/m6wmr/YucartActivity$16;->start()V

    .line 1134
    const/4 v0, 0x0

    return v0
.end method

.method public waitaddress()V
    .locals 4

    .prologue
    .line 302
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 303
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f03009d

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    .line 304
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    const v2, 0x7f0c0301

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 305
    .local v0, "waitlogin":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/YucartActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/YucartActivity$3;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 316
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 317
    return-void
.end method

.method public waitlogin()V
    .locals 4

    .prologue
    .line 284
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 285
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f03009e

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    .line 286
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    const v2, 0x7f0c0301

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 287
    .local v0, "waitlogin":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/YucartActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/YucartActivity$2;-><init>(Lcom/example/m6wmr/YucartActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 298
    iget-object v1, p0, Lcom/example/m6wmr/YucartActivity;->publayout:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/example/m6wmr/YucartActivity;->waitLoginView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 299
    return-void
.end method
